.class Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;
.super Landroid/os/AsyncTask;
.source "PreferencesActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/noshufou/android/su/preferences/PreferencesActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "BackupApps"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        "Ljava/lang/Boolean;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;


# direct methods
.method private constructor <init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 429
    iput-object p1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 429
    invoke-direct {p0, p1}, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;-><init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;)V

    return-void
.end method


# virtual methods
.method protected varargs doInBackground([Ljava/lang/Void;)Ljava/lang/Boolean;
    .locals 1
    .parameter "params"

    .prologue
    .line 438
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-static {v0}, Lcom/noshufou/android/su/util/BackupUtil;->makeBackup(Landroid/content/Context;)Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected bridge varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;->doInBackground([Ljava/lang/Void;)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected onPostExecute(Ljava/lang/Boolean;)V
    .locals 3
    .parameter "result"

    .prologue
    .line 443
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    const v1, 0x7f0a0010

    invoke-virtual {v0, v1}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 444
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 445
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-virtual {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    .line 446
    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    const v2, 0x7f0b0075

    invoke-virtual {v1, v2}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 445
    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    .line 446
    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 448
    :cond_0
    return-void
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p0, p1}, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;->onPostExecute(Ljava/lang/Boolean;)V

    return-void
.end method

.method protected onPreExecute()V
    .locals 2

    .prologue
    .line 433
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$BackupApps;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    const v1, 0x7f0a0010

    invoke-virtual {v0, v1}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 434
    return-void
.end method
